import { IsNumberString, IsOptional,ValidateIf } from 'class-validator'

export class SearchDto {

    
    @IsNumberString()
    page: number

    @IsNumberString()
    limit: number

    @IsOptional()
    @ValidateIf(o => o.name != '')
    order?: string
}